package com.flyduck.modules.system.service.impl;

import com.flyduck.modules.system.domain.SysUser;
import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Service;

/**
 * @program: flyduck-admin
 * @description:
 * @author: flyduck
 * @create: 2020-06-02 11:05
 **/
@Service
public class BaseServiceImpl {


    public SysUser getUser(){
        return (SysUser) SecurityUtils.getSubject().getPrincipal();
    }


}
